package com.wcl.hencodertest.generic;

import android.widget.Button;
import android.widget.TextView;

import org.w3c.dom.Text;

import java.util.ArrayList;
import java.util.List;

public abstract class JavaGeneric<A extends Object> {

    public void someMethod(List<? extends A> list) {

    }

    public<T extends A> void someMethod2(List<T> list) {

    }

    public void test() {
//        List<? extends TextView> list = new ArrayList<Button>();
//        TextView textView = list.get(0);
//        list.add(textView);


    }


    public <J extends Text> void test2(J j) {

    }

    public class Test1<T extends TextView> {


        public T add(T t) {

            return t;
        }


    }

    public static <Q extends Object> void test3(Q a){

    }

}
